<div class="sebelumjud">
                <div class="jodol">Todo | —Home</div>
                        <?php
                            if(!empty($page) and !empty($curr_page)){
                                echo '<div id="panah">';
                                if($curr_page>1)
                                echo '<a href="'.base_url().'progress/progress_con/todo/'.$urgent.'/'.$id_divisi.'/'.($curr_page-1).'" class="pre"><img src="'.base_url().'images/pre.png" width="18" height="17" /></a>
                                    ';
                                if($curr_page<$page)
                                    echo '<a href="'.base_url().'progress/progress_con/todo/'.$urgent.'/'.$id_divisi.'/'.($curr_page+1).'" class="next"><img src="'.base_url().'images/next.png" width="18" height="17" /></a>
                                        ';
                                echo '</div>';
                            }
                        ?>    

</div>
<div class="clear"></div>

        <div id="jumat">
                <div id="last">         
                        <a href="<?php echo base_url().'progress/progress_con/todo/'?>">All</a>
                        <a href="<?php echo base_url().'progress/progress_con/todo/1'?>">Urgently</a>
                        <a href="<?php echo base_url().'progress/progress_con/todo_personal_me'?>">My Task</a>
                        <a href="<?php echo base_url().'progress/progress_con/todo_personal'?>">Personal</a>
                </div>
    <table border="0" cellspacing="0" cellpadding="0" class="tabeltgl">
                        <tr>
                                <td class="bulan"><a href="<?php echo base_url().'progress/progress_con/todo/'.$urgent.'/-1'?>"><?php echo date('M Y')?></a></td>
                                <td>
                                        <?php
                                            if(!empty($list_divisi)){
                                                echo '<ul class="are">
                                                    ';
                                                for($i=0;$i<count($list_divisi);$i++){
                                                    echo '<li><a href="'.base_url().'progress/progress_con/todo/'.$urgent.'/'.$list_divisi[$i]['ID_DIVISI'].'">'.$list_divisi[$i]['NAMA_DIVISI'].'</a></li>
                                                        ';
                                                }
                                                echo '</ul>
                                                    ';
                                            }
                                        ?>
                                </td>
                        </tr>
    </table>
                <div id="text">
                    <?php
                        if(!empty($todo)){
                            for($i=0;$i<count($todo);$i++){
                                echo '
                                <div  class="todoh">';
                                if(!empty($todo[$i]['ISI_TODO']))
                                    echo '<a href="'.base_url().'progress/progress_con/todo_done/1/'.$todo[$i]['ID_TODO'].'">'.$todo[$i]['ISI_TODO'];
                                else 
                                    echo '<a href="'.base_url().'progress/progress_con/todo_done/2/'.$todo[$i]['ID_TODO'].'">'.$todo[$i]['DESKRIPSI_TODO'];
                                echo '</a> ';
                                if($todo[$i]['STATUS_URGENT'])
                                    echo '<span class="penting">!</span>';
                                    echo '<span class="deadline"> For: ';
                                    if(!empty($todo[$i]['ID_DIVISI']))
                                        echo $todo[$i]['NAMA_DIVISI'];
                                    else 
                                        echo $todo[$i]['NAMA'];
                                    echo', deadline '.$todo[$i]['DEADLINE'].'</span>
                                </div>

                                    ';
                            }
                        }
                    ?>

                </div><!---end div#text --->
                                        <p class="paging">
                        <?php
                            if(!empty($page) and !empty($curr_page)){
                                if($curr_page>1)
                                echo '<a href="'.base_url().'progress/progress_con/todo/'.$urgent.'/'.$id_divisi.'/'.($curr_page-1).'"><</a>';
                                for($i=0;$i<$page;$i++){
                                    if($curr_page==($i+1))
                                        echo '<b>';
                                    echo '<a href="'.base_url().'progress/progress_con/todo/'.$urgent.'/'.$id_divisi.'/'.($i+1).'">'.($i+1).'</a>';
                                    if($curr_page==($i+1))
                                        echo '</b>';
                                }
                                if($curr_page<$page)
                                    echo '<a href="'.base_url().'progress/progress_con/todo/'.$urgent.'/'.$id_divisi.'/'.($curr_page+1).'">></a>';
                            }
                        ?>    
                        </p>
        </div><!---end div#jumat --->
        <div class="clear"></div>